package wangjg.dbfx.mapping;

import java.util.HashMap;

public class EntityInfo{
	private String table;
	private FieldInfo id;
	private HashMap<String,FieldInfo> fieldMap = new HashMap<String,FieldInfo>();
	private HashMap<String,FieldInfo> columnMap = new HashMap<String,FieldInfo>();
	
	public HashMap<String, FieldInfo> getFieldMap() {
		return fieldMap;
	}
	public HashMap<String, FieldInfo> getColumnMap() {
		return columnMap;
	}
	public String getTable() {
		return table;
	}
	public void setTable(String table) {
		this.table = table;
	}
	public FieldInfo getId() {
		return id;
	}
	public void setId(FieldInfo id) {
		this.id = id;
	}
	public void putFieldInfo(FieldInfo fi){
		this.fieldMap.put(fi.getFieldName(), fi);
		this.columnMap.put(fi.getColumnName(), fi);
	}

}